import moment from "moment"
import {Post} from "@/types"

export const basePost: Post = {
    id: 1,
    title: "GGB学习vue3 ts",
    markdown: "课程列表",
    html: "<p>这是内容</p>",
    authorId: 8,
    created: moment()
}

export const todayPost: Post = {
    ...basePost,
    id:1,
    title: "今天"
}

export const thisWeek: Post = {
    ...basePost,
    id:2,
    title: "本周",
    created: moment().subtract(2, "days")
}

export const thisMonth: Post = {
    ...basePost,
    id:3,
    title: "本月",
    created: moment().subtract(2, "weeks")
}